{% extends "shared/layout.volt" %}
{% block content %}
<h1 class="page-header">
    支付配置
    <a href="{{ url("home/edit") }}" class="btn btn-default btn-sm pull-right"><i class="glyphicon glyphicon-plus"></i> 新增数据</a>
</h1>

<div class="table-responsive">
    <table class="table-tidy">
        <thead class="table-tidy-head">
        <tr>
            <th>支付名称</th>
            <th style="width: 200px;" class="text-center">商户编码</th>
            <th>支付账号</th>
            <th style="width: 200px;" class="text-center">支付平台</th>
            <th style="width: 120px;" class="text-center">加密方式</th>
            <th style="width: 120px;" class="text-center">启用状态</th>
            <th style="width: 120px;" class="text-center">操作设置</th>
        </tr>
        </thead>
        <tbody class="table-tidy-body">
        {% for item in Model.items %}
        <tr>
            <td>{{ item.pay_name }}</td>
            <td>{{ item.pay_id }}</td>
            <td>{{ item.pay_account }}</td>
            <td>{{ item.pay_platform }}</td>
            <td>{{ item.sign_type }}</td>
            <td>
                {% if item.pay_status == 'y' %}
                    <span class="label-yes"><i class="glyphicon glyphicon-ok-circle"></i> 启用</span>
                {% else %}
                    <span class="label-no"><i class="glyphicon glyphicon-ban-circle"></i> 停用</span>
                {% endif %}

            </td>
            <td><a href="{{ url('home/detail') }}?pay_id={{ item.pay_id }}"> 查看</a> </td>
        </tr>
        {% else %}
            <tr>
                <td colspan="7" class="text-center">暂无记录</td>
            </tr>
        {% endfor %}
    </table>
    <div class="page pagination">
        <?php echo $Model->getPaginate();?>
    </div>
</div>
{% endblock %}